package com.dingreading.cloud.soms.service.impl;

import com.dingreading.cloud.soms.entity.SsMstXcxHomeworkFilesTrack;
import com.dingreading.cloud.soms.entity.table.SsMstXcxHomeworkFilesTrackTableDef;
import com.dingreading.cloud.soms.mapper.SsMstXcxHomeworkFilesTrackMapper;
import com.dingreading.cloud.soms.service.SsMstXcxHomeworkFilesTrackService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 阿里云文件上传追踪表 服务层实现。
 *
 * @author EDY
 * @since 2025-11-03
 */
@Service
public class SsMstSsMstXcxHomeworkFilesTrackServiceImpl extends BaseServiceImpl<SsMstXcxHomeworkFilesTrackMapper, SsMstXcxHomeworkFilesTrack, SsMstXcxHomeworkFilesTrackTableDef> implements SsMstXcxHomeworkFilesTrackService {

    @Override
    protected SsMstXcxHomeworkFilesTrackTableDef getTable() {
        return SsMstXcxHomeworkFilesTrackTableDef.ssMstXcxHomeworkFilesTrack;
    }

    @Override
    public List<SsMstXcxHomeworkFilesTrack> getByHomeworkUidList(List<String> homeworkUidList) {
        return getMapper().selectListByCondition(table.homeworkUid.in(homeworkUidList));
    }
}
